function AuthPasswd(pwdid) {
	var string = $('#'+pwdid).val();
	if(string.length >4) {
		if(/[a-zA-Z]+/.test(string) && /[0-9]+/.test(string) && /\W+\D+/.test(string)) {
			noticeAssign(1);
		}else if(/[a-zA-Z]+/.test(string) || /[0-9]+/.test(string) || /\W+\D+/.test(string)) {
			if(/[a-zA-Z]+/.test(string) && /[0-9]+/.test(string)) {
				noticeAssign(-1);
			}else if(/\[a-zA-Z]+/.test(string) && /\W+\D+/.test(string)) {
				noticeAssign(-1);
			}else if(/[0-9]+/.test(string) && /\W+\D+/.test(string)) {
				noticeAssign(-1);
			}else{
				noticeAssign(0);
			}
		}
	}else{
		noticeAssign(null);	
	}
}
function noticeAssign(num) {
	if(num == 1) {//很强
		$('#weak').css({backgroundColor:'#009900'});
		$('#middle').css({backgroundColor:'#009900'});
		$('#strength').css({backgroundColor:'#009900'});
	}else if(num == -1){//中
		$('#weak').css({backgroundColor:'#ffcc33'});
		$('#middle').css({backgroundColor:'#ffcc33'});
		$('#strength').css({backgroundColor:''});
	}else if(num ==0) {//弱
		$('#weak').css({backgroundColor:'#dd0000'});
		$('#middle').css({backgroundColor:''});
		$('#strength').css({backgroundColor:''});
	}else{
		$('#weak').css({backgroundColor:''});
		$('#middle').css({backgroundColor:''});
		$('#strength').css({backgroundColor:''});
	}
}